/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JPanelColaboracion2.java
 *
 * Created on 19-may-2010, 19:12:44
 */

package edu.ieslaferreria.creditsintesis.builders.Swing;

import edu.ieslaferreria.creditsintesis.rmi.Client;
import edu.ieslaferreria.creditsintesis.rmi.Pont;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *
 * @author Administrador
 */
public class JPanelColaboracion2_1 extends JPanelGame {

      
    /** Creates new form JPanelColaboracion2 */
    public JPanelColaboracion2_1() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jRadioButtonOk = new javax.swing.JRadioButton();
        jRadioButtonNoOk = new javax.swing.JRadioButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();

        jRadioButtonOk.setText("Aceptar");
        jRadioButtonOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonOkActionPerformed(evt);
            }
        });

        jRadioButtonNoOk.setText("Rebuig");
        jRadioButtonNoOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonNoOkActionPerformed(evt);
            }
        });

        jScrollPane1.setViewportBorder(javax.swing.BorderFactory.createTitledBorder("Opciones elegidas por el otro Player"));

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jRadioButtonOk)
                        .addGap(124, 124, 124)
                        .addComponent(jRadioButtonNoOk)
                        .addGap(185, 185, 185))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 574, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButtonOk)
                    .addComponent(jRadioButtonNoOk)))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jRadioButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonOkActionPerformed
        // TODO add your handling code here:

        /*enviar al server resp*/
    }//GEN-LAST:event_jRadioButtonOkActionPerformed

    private void jRadioButtonNoOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonNoOkActionPerformed
        // TODO add your handling code here:
        /*enviar al server resp*/
    }//GEN-LAST:event_jRadioButtonNoOkActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JRadioButton jRadioButtonNoOk;
    private javax.swing.JRadioButton jRadioButtonOk;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables

    public void update(Map<String, List<String>> opcions,ArrayList<String> extras) {

         jTextArea1.setText("El otro player ha elegido la prueba " + opcions.get(OPCIO_BASICA));
    }

//    public void updateOpPlayer2(Map<String, List<String>> opcions,ArrayList<String> extras) {
//        throw new UnsupportedOperationException("Not supported yet.");
//    }
 
}
